package com.bjesc_b2c.app.appraiset.mvp.presenter.impl;

import android.content.Context;

import com.bjesc_b2c.app.appraiset.mvp.model.impl.LikeCarModelImpl;
import com.bjesc_b2c.app.appraiset.mvp.presenter.LikeCarPresenter;
import com.bjesc_b2c.app.appraiset.mvp.view.LikeCarView;

import java.util.List;

import master_bean.DemandCarBean;
import master_bean.FindCarBean;

/**
 * Created by yidong on 2017/5/25.
 */

public class LikeCarPresenterImpl implements LikeCarPresenter,LikeCarModelImpl.CallBack {
    private LikeCarView carView;
    private LikeCarModelImpl carModel;
    public LikeCarPresenterImpl(LikeCarView carView){
        this.carView = carView;
        carModel = new LikeCarModelImpl(this);
    }
    @Override
    public void getLikeCars(FindCarBean findBean) {
        carModel.getLikeCars((Context)carView,findBean);
    }

    @Override
    public void callback(List<DemandCarBean> listbean) {
        carView.getLikeCars(listbean);
    }
}
